<?php
class Salestax extends AppModel {
	var $name = 'Salestax';
	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $validate = array(		
		'rate' => array(
			'decimal' => array(
				'rule' => array('decimal'),
				'message' => 'Enter tax rate ex.:x.00',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			)
		));
	var $belongsTo = array(
		'State' => array(
			'className' => 'State',
			'foreignKey' => 'state_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
?>